//
//  UIAlertView+Kirinrin.h
//  YouMe
//
//  Created by Kirinrin on 14/9/18.
//  Copyright (c) 2014年 suplus. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, FCError)
{
    FCErrorInvaildLength,
    FCErrorInvaildFormat,
    FCErrorInvaildPassword,
    FCErrorInvaildPhoneNumber,
};

typedef NS_ENUM(NSUInteger, WSResult)
{
    WSResultSuccess = 0,
    WSResultCommonError,
    WSResultWrongAuthentication,
    WSResultInvalidVerifyCode,

    WSResultRestPasswordTooOfen = 7,
    WSResultAccountFrozen,
    WSResultNoPermission,
    WSResultKeyInvalid,
    WSResultOldPasswordError,
    WSResultNoAccount,
    WSResultPhoneRegistered,
    WSResultVerifyCodeRequestTooOften = 15,
};


typedef NS_ENUM(NSUInteger, WSResultApp)
{
    WSResultAppNoClassData = 4,
    WSResultAppNoTeacherData = 5,
    WSResultAppNoChildData = 6,
};

@interface UIAlertView (Kirinrin)

+ (void) alertWithTitle:(NSString *)title message:(NSString *)message;
+ (void) alertWithMessage:(NSString *)message;
+ (void) alertWithRemoteError:(WSResult)errorCode;
+ (void) alertWithFormCheckError:(FCError)errorCode;
+ (void) alertWithNetworkError;
@end
